package com.cn.wanxi.servlet;

import com.cn.wanxi.model.ResultModel;
import com.cn.wanxi.util.JDBC;
import com.cn.wanxi.util.SendEmail;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.sql.ResultSet;

@WebServlet("/email/sendEmail")
public class Email extends HttpServlet {
    @Override
    protected void doPost(HttpServletRequest req, HttpServletResponse resp) {
        SendEmail sendEmail = new SendEmail();
        String username = req.getParameter("content");
        try {
            sendEmail.sendMessage("aaa");
        } catch (Exception e) {
            e.printStackTrace();
        }

        return;
    }
}
